package my.lang.psi;

import com.intellij.lang.ASTNode;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import lang.psi.MyLanguageTypes;
import org.jetbrains.annotations.Nullable;
import my.lang.icon.MyLanguageIcons;

import javax.swing.*;

/**
 * @author yanchangyou
 */
public class MyLanguagePsiImplUtil {

    public static String getAction(MyLanguageStatement element) {
        return element.getText();
    }

    public static String getName() {
//        return findChildByClass(MyLanguageFlowDefineStatement.class);
//        return getAction(MyLanguageStatement.class);
        return "name";
    }

    public static void setName(String newName) {

    }

    public static PsiElement getNameIdentifier() {

        return null;
    }

    public static void getPresentation(final MyLanguageStatement element) {

    }
}